package com.wtwd.campus.h5_manager.common;

/**
 * 返回状态码枚举
 */
public enum RespCode implements BaseRespCode {
    FAILED(0, "failed"), //失败
    SUCCESS(1, "success"),//成功
    TOKEN_UNAUTHORIZED(502, "token授权失败"),
    USER_NAME_OR_PASSWORD_ERROR(601,"用户名或者密码错误"),
    USER_EXIST(601,"已经存在该用户名用户"),
    NO_PERMISSION(602,"无权操作"),
    NO_PARAM(604,"参数不能为空"),
    NO_RIGHT_OPERATION(1001,"无权操作")
    ,CUSTOMER_EXIST(2002,"客户已存在")
    ,GETWAEWARY_timeout(5003,"连接超时,请重新")
    ,CUSTOMER_NOT_EXIST(6001,"请输入正确且完整的客户名称")
    ,CUSTOMER_NOT_DEVICE(6002,"该客户并无设备导出")
    ,DEVICE_EXIST(7001,"已经存在该设备")


    ;

    private int code;
    private String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
